#ifndef _UART_H
#define _UART_H

#include "main.h"
#include "stdio.h"
#include "string.h"

#define uint8_t  unsigned char
#define uint16_t unsigned short int


#define RX1_MAX_LEN 50

extern bit busy1;
extern uint8_t xdata rx1_buf[RX1_MAX_LEN];
extern uint8_t xdata rx1_sta;
extern uint8_t xdata uart1_Idle;

void Uart_init(void);

void Uart1Init(void);		//115200bps@33.1776MHz
void Uart1SendByte(char p);
void Uart1SendStr(char *p,uint8_t len);
void Uart1_handle(void);

#endif

